package com.efounder.bean;

import java.io.Serializable;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/11/215:31
 * @desc : 夺宝详情实体类
 * @version: 1.0
 */
public class WinTreasureDetailsBean implements Serializable {

    /**
     * msg : 获取获奖商品信息成功
     * code : 0
     * data : {"goodsWinner":{"orderNumber":"20181105","luckyBlock":"1390440","luckyHash":"14a2d609","goodsId":7,"sellOutBlock":"1390428","luckyHashDecimal":"346215945","total":1,"winnerId":1,"id":13,"winnerAddress":"0x188e75310a9f25850f2a21f6720194b6d899b8db","mallGoodsId":"20181105","sellOutBlockTime":"2018-11-05 16:47:22"}}
     */

    private String msg;
    private int code;
    private DataBean data;
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * goodsWinner : {"orderNumber":"20181105","luckyBlock":"1390440","luckyHash":"14a2d609","goodsId":7,"sellOutBlock":"1390428","luckyHashDecimal":"346215945","total":1,"winnerId":1,"id":13,"winnerAddress":"0x188e75310a9f25850f2a21f6720194b6d899b8db","mallGoodsId":"20181105","sellOutBlockTime":"2018-11-05 16:47:22"}
         */

        private GoodsWinnerBean goodsWinner;

        public GoodsWinnerBean getGoodsWinner() {
            return goodsWinner;
        }

        public void setGoodsWinner(GoodsWinnerBean goodsWinner) {
            this.goodsWinner = goodsWinner;
        }

        public static class GoodsWinnerBean {
            /**
             * orderNumber : 20181105
             * luckyBlock : 1390440
             * luckyHash : 14a2d609
             * goodsId : 7
             * sellOutBlock : 1390428
             * luckyHashDecimal : 346215945
             * total : 1
             * winnerId : 1
             * id : 13
             * winnerAddress : 0x188e75310a9f25850f2a21f6720194b6d899b8db
             * mallGoodsId : 20181105
             * sellOutBlockTime : 2018-11-05 16:47:22
             */

            /**
             * 主键
             */
            private int id;
            /**
             * 合约中商品编号
             */
            private int goodsId;
            /**
             * 幸运号码
             */
            private int winnerId;
            /**
             * 获奖者地址
             */
            private String winnerAddress;
            /**
             * 订单编号
             */
            private String orderNumber;
            /**
             * 参与总人次
             */
            private int total;
            /**
             * 售馨区块号
             */
            private String sellOutBlock;
            /**
             * 中奖区块号
             */
            private String luckyBlock;
            /**
             * 中奖区块hash后8位
             */
            private String luckyHash;
            /**
             * 商城商品编号
             */
            private String mallGoodsId;
            /**
             * 幸运区块hash后8位转10进制
             */
            private String luckyHashDecimal;
            private String sellOutBlockTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(int goodsId) {
                this.goodsId = goodsId;
            }

            public int getWinnerId() {
                return winnerId;
            }

            public void setWinnerId(int winnerId) {
                this.winnerId = winnerId;
            }

            public String getWinnerAddress() {
                return winnerAddress;
            }

            public void setWinnerAddress(String winnerAddress) {
                this.winnerAddress = winnerAddress;
            }

            public String getOrderNumber() {
                return orderNumber;
            }

            public void setOrderNumber(String orderNumber) {
                this.orderNumber = orderNumber;
            }

            public int getTotal() {
                return total;
            }

            public void setTotal(int total) {
                this.total = total;
            }

            public String getSellOutBlock() {
                return sellOutBlock;
            }

            public void setSellOutBlock(String sellOutBlock) {
                this.sellOutBlock = sellOutBlock;
            }

            public String getLuckyBlock() {
                return luckyBlock;
            }

            public void setLuckyBlock(String luckyBlock) {
                this.luckyBlock = luckyBlock;
            }

            public String getLuckyHash() {
                return luckyHash;
            }

            public void setLuckyHash(String luckyHash) {
                this.luckyHash = luckyHash;
            }

            public String getMallGoodsId() {
                return mallGoodsId;
            }

            public void setMallGoodsId(String mallGoodsId) {
                this.mallGoodsId = mallGoodsId;
            }

            public String getLuckyHashDecimal() {
                return luckyHashDecimal;
            }

            public void setLuckyHashDecimal(String luckyHashDecimal) {
                this.luckyHashDecimal = luckyHashDecimal;
            }

            public String getSellOutBlockTime() {
                return sellOutBlockTime;
            }

            public void setSellOutBlockTime(String sellOutBlockTime) {
                this.sellOutBlockTime = sellOutBlockTime;
            }
        }
    }
}
